package com.paiai.lslease.service.apprepairs;

import com.paiai.lslease.auto.model.AppRepairs;

import java.sql.SQLException;
import java.util.List;

public interface AppRepairsService {
    /**
     * 租客向房东报修
     *
     */
    AppRepairs repairsToLandlord(AppRepairs appRepairs) throws Exception;

    /**
     * 房东查询租客提交的报修列表
     */
    List<AppRepairs> selectRepairsListByLanlord(int landlordId) throws Exception;

    /**
     * 租客查询自己提交的报修列表
     */
    List<AppRepairs> selectRepairsListByTenant(int tenantId) throws Exception;

    /**
     * 授权管理员查看自己管理的房源相关的保修单
     */
    List<AppRepairs> selectRepairsListByAuthManager(int authManagerId) throws Exception;

    /**
     * 根据报修ID查询单条报修信息
     */
    AppRepairs selectSingleRepairsInfoById(int repairsId) throws Exception;

}
